package com.documents.converjob;

import com.documents.common.util.SpringBeanProxy;
import com.documents.service.document.DocumentFormatOrderService;
import org.apache.commons.logging.LogFactory;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;

public class ConvertPdfJob extends QuartzJobBean {
    private static final org.apache.commons.logging.Log log = LogFactory.getLog(ConvertPdfJob.class);
    protected void executeInternal(JobExecutionContext arg0)
            throws JobExecutionException {
	
        DocumentFormatOrderService documentFormatOrderService = (DocumentFormatOrderService) SpringBeanProxy.getBean("documentFormatOrderService");
        documentFormatOrderService.convertToPdf();
     

    }
}
